package com.lmt.ymcc.feign;

import com.lmt.ymcc.domain.Login;
import com.lmt.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Description: openfeign调用uaa中的方法
 * @Author: Amazing
 * @Date: 2022/8/7 17:46
 * @Version: 1.0
 */
@FeignClient(value = "service-uaa")
public interface UaaFeign {

    @RequestMapping(value="/login/save",method= RequestMethod.POST)
    JSONResult<Login> saveOrUpdate(@RequestBody Login login);

}
